package com.gxa.meiye.admin.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.meiye.core.pojo.shopManagement.OrderManagement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author cc
 * @PackageName meiye
 * @Package com.gxa.meiye.admin.shop.mapper
 * @Date 2022/7/24 9:55
 * @Version 1.0
 */
public interface OrderManagementMapper extends BaseMapper<OrderManagement> {
    List<OrderManagement> selectAll();
    Integer selectAllCount();
    /*根据条件查询*/
    List<OrderManagement> queryByCondition(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize,
        @Param("endTime")String endTime,@Param("orderNumber") String orderNumber, @Param("phone") String phone,@Param("startTime") String startTime,@Param("status") Integer status);
    /*根据条件查询的总数*/
    Integer countConditionAll(OrderManagement orderManagement);

    Integer deleteByStatus(Integer status);

}
